﻿using System;
using System.ComponentModel.DataAnnotations;

namespace EnetaMvc.Infrastructure
{
    public class DateRangeAttribute : RangeAttribute
    {
        public DateRangeAttribute() : base(typeof(DateTime), DateTime.Now.AddYears(-20).ToShortDateString(), DateTime.Now.AddYears(2).ToShortDateString())
        {
        
        }
    }
}
